import {defineStore} from 'pinia'
import {ref} from 'vue'

 export const useUserInfoStore= defineStore('userInfo',()=>{
        
    const info=ref({})
    
    const setInfo = (newdata)=>{
        info.value=newdata
    }
    
    const removeInfo = ()=>{
        info.value={}
    }
    return {
        info,
        setInfo,
        removeInfo
    }
},
{persist:true}
)



